<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台登录-X-admin1.1</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="backstageCSSandJS/css/font.css">
    <link rel="stylesheet" href="backstageCSSandJS/css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="backstageCSSandJS/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="backstageCSSandJS/js/xadmin.js"></script>

</head>
<body>
    <!-- 中部开始 -->
    <div class="wrapper">
        <!-- 右侧主体开始 -->
        <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <form class="layui-form" action="ns.do?op1=deptup" method="post">
            <c:if test="${requestScope.list!=null}">
            <c:forEach var="u" items="${requestScope.list}">
                <div class="layui-form-item">
                    <label for="L_email" class="layui-form-label">
                        部门编号
                    </label>
                    <div class="layui-input-inline">
                        <input type="text"  name="deptId" id="deptId" required lay-verify="email"
                        autocomplete="off" readonly="readonly" value="${u.deptId}" class="layui-input">
                    </div>
                   
                </div>
                <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        部门名字
                    </label>
                    <div class="layui-input-inline">
                        <input type="text"  name="deptName" id="deptName" required lay-verify="required"
                        autocomplete="off" value="${u.deptName}" class="layui-input">
                    </div>
                    
                </div>
                <div class="layui-form-item">
                    <label for="L_city" class="layui-form-label">
                        部长工号
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="deptManId" name="deptManId" autocomplete="off" value="${u.deptManId}"
                        class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label for="L_sign" class="layui-form-label">
                        部门简介
                    </label>
                    <div class="layui-input-block">
                        <textarea placeholder="随便写些什么刷下存在感" id="deptInfo" name="deptInfo" autocomplete="off"
                        class="layui-textarea" style="height: 80px;" value="${u.deptInfo}">${u.deptInfo}</textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_sign" class="layui-form-label">
                    </label>
                     <input type="submit" id="btn1" name="btn1" class="layui-btn">
                </div>
                 </c:forEach>
                </c:if>
            </form>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>
    <!-- 中部结束 -->
    <script>
    var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
    $('#btn1').on('click', function(){
    	parent.location.reload();
        parent.layer.close(index); //执行关闭
        
    });
    </script>
</body>
</html>